<template>
  <div>
    <el-button @click="handleClick">点我弹出弹框</el-button>
  </div>
</template>

<script>
import TestForm from "@/components/dialog6/TestForm";
import {useDialog} from "@/components/dialog6/MyDialog"
export default {
  name: "MyDialogTest6",
  data() {
    return {

    }
  },
  methods: {
    handleClick() {
      const close = useDialog(TestForm, {fdata: {
          id: "1001",
          name: "lucy",
          age: 10,
          hobbyArray: [
            {label: "唱歌", value: "sing"},
            {label: "跳舞", value: "dance"},
            {label: "篮球", value: "basketball"},
          ]}}, (formData) => {
        console.log(formData);
        // close();
      }, () => {

      });
    }
  }
}

</script>

<style scoped>

</style>